//
//  MulTipleViewSelectedView.h
//  多View选择器
//
//  Created by LK-IOS on 2018/1/4.
//  Copyright © 2018年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MulTipleViewSelectedView;

@protocol MulTipleViewSelectedViewDelegate <NSObject>

@optional

/**
 点击cell的代理
 @param catergoryView 选择器
 @param indexPath 索引
 */
- (void)catergoryView:(MulTipleViewSelectedView *)catergoryView didSelectItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface MulTipleViewSelectedView : UIView

/**
 选择器管理的scrollerView，必须在外部设置
 */
@property (nonatomic, strong) UIScrollView *scrollView;

/**
 数据源标题
 */
@property (nonatomic, copy) NSArray *titles;

/**
 动画时间
 */
@property (nonatomic, assign) NSTimeInterval clickedAnimationDuration;

/**
 点击item时，滚动scrollerView时，是否需要动画
 */
@property (nonatomic, assign) BOOL scrollWithAnimaitonWhenClicked;

@property (nonatomic, assign) id<MulTipleViewSelectedViewDelegate> delegate;

#pragma mark - item

/**
 item的间距
 */
@property (nonatomic, assign) CGFloat itemSpacing;

/**
 左右间距  有一个默认20.0
 */
@property (nonatomic, assign) CGFloat edgeSpacing;

/**
 字体  默认15
 */
@property (nonatomic, strong) UIFont *titleFont;

/**
 是否开启文字颜色渐变效果  默认为yes
 */
@property (nonatomic, assign) BOOL titleColorChangeEable;
//是否开启文字颜色变化渐变，默认NO，如果设置该效果YES需要先保证titleColorChangeEable为YES
@property (nonatomic, assign) BOOL titleColorChangeGradually;
//edge间距， 默认 白色
@property (nonatomic, strong) UIColor *titleColor;
//edge间距， 默认 红色
@property (nonatomic, strong) UIColor *titleSelectColor;
//是否开启缩放， 默认NO
@property (nonatomic, assign) BOOL scaleEnable;
//缩放比例， 默认1.1
@property (nonatomic, assign) CGFloat scaleRatio;
//是否开启下方横线，默认NO
@property (nonatomic, assign) BOOL bottomLineEable;
//下方横线颜色，默认红色
@property (nonatomic, strong) UIColor *bottomLineColor;
//下方横线宽度，默认2.0f
@property (nonatomic, assign) CGFloat bottomLineWidth;
//下方横线距离item底部的距离，默认10.0f
@property (nonatomic, assign) CGFloat bottomLineSpacingFromTitleBottom;

//是否隐藏背后的椭圆，默认YES
@property (nonatomic, assign) BOOL backEllipseEable;
//椭圆颜色，默认黄色
@property (nonatomic, strong) UIColor *backEllipseColor;
//默认选中哪一个
@property (nonatomic , assign) NSInteger deafaultindex;

/**
 重新设置数据源之后的刷新方法
 */
- (void)pz_realoadData;


@end
